package com.labbol.core.exception;

import com.labbol.core.query.data.Condition.Operator;

/**
 * 无效的Operator异常
 * @author fuxl
 * @since 2018年2月8日下午9:14:59
 * @version v1.0
 */
public final class InvlidOperatorException extends QueryException {

	private static final long serialVersionUID = 8160379602529293259L;

	public InvlidOperatorException(String property, String operatorStr) {
		this(property, operatorStr, null);
	}

	public InvlidOperatorException(String property, String operatorStr, Throwable cause) {
		super("Invalid  Operator property [" + property + "], " + "operator [" + operatorStr + "], must be one of "
				+ Operator.toStringAllOperator(), cause);
	}
}
